public class documentExt {
                    
        private String Name;
        private String Phone;
       
        public void setName(String name){
        	this.Name = name;
        }  
        public String getName(){
        	return(this.Name);
        }
        public void setPhone(String no){
        	this.Phone = no;
        }
        public String getPhone(){
        	return(this.Phone);
        }
        
        public PageReference submit(){
        	MyCustomer__c myCustomer = new MyCustomer__c(Name=this.Name, Phone_No__c= this.Phone);
        	insert(myCustomer);
        	PageReference nextPage = new PageReference('/Thanks');
			nextPage.setRedirect(true);
			return nextPage;
        	
        }
}